package com.yyb.learn.jbusine.dao;

import com.yyb.common.bo.RegisterUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author yuyb40219
 * @Date 2021/9/28 15:46
 * Description:
 */
@Mapper
public interface UserDao {

    @Insert("INSERT INTO t_user (vc_account, vc_password, vc_nickname, c_sex, vc_birthday, c_state) " +
            "VALUES (#{account},#{password},#{nickname},#{sex},#{birthday},'2')")
    void insertUser(@Param("registerUser") RegisterUser registerUser);
}
